.class Lcom/estrongs/android/taskmanager/hl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, 0x3

    const/4 v3, 0x1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    float-to-int v1, v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->c(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->d(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->onTouchEvent(Landroid/view/MotionEvent;)Z

    :goto_0
    return v3

    :cond_0
    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->k(Lcom/estrongs/android/taskmanager/TaskManager;)I

    move-result v0

    if-nez v0, :cond_3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->l(Lcom/estrongs/android/taskmanager/TaskManager;)I

    move-result v1

    sub-int/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->m(Lcom/estrongs/android/taskmanager/TaskManager;)I

    move-result v2

    sub-int/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v2

    iget v2, v2, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->a:I

    if-gt v0, v2, :cond_1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v2

    iget v2, v2, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->a:I

    if-gt v1, v2, :cond_1

    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    goto :goto_0

    :cond_1
    if-lt v0, v1, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0, v3}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->onTouchEvent(Landroid/view/MotionEvent;)Z

    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->setAction(I)V

    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    const/4 v1, -0x1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->setAction(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->onTouchEvent(Landroid/view/MotionEvent;)Z

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->k(Lcom/estrongs/android/taskmanager/TaskManager;)I

    move-result v0

    if-ne v0, v3, :cond_4

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hl;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->onTouchEvent(Landroid/view/MotionEvent;)Z

    goto/16 :goto_0

    :cond_4
    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    goto/16 :goto_0
.end method
